package com.example.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginUser implements Serializable {

    private static final long serialVersionUID = 382904889113423097L;

    //用户唯一标识
    private String token;

    //登录时间
    private Long loginTime;

    //过期时间
    private Long expireTime;

    //todo 当前角色
    //private Long roleId;

    /**
     * 权限列表
     */
    private List<String> permissions;

    /**
     * 角色列表
     */
    List<Long> roles;

    //用户信息
    private User user;
}
